#include "mainwidget.h"
#include "ui_mainwidget.h"

MainWidget::MainWidget(QWidget *parent) :
	QWidget(parent),
	ui(new Ui::MainWidget)
{
	ui->setupUi(this);

	ui->scroll2->setPrecision(0.1);
	ui->scroll2->setRange(0, 1);

	ui->scroll3->setPrecision(0.01);
	ui->scroll3->setRange(-0.1, 0.1);

	ui->scroll4->setPrecision(0.001);
	ui->scroll4->setRange(0, 0.02);

	ui->scroll5->setPrecision(2);
	ui->scroll5->setRange(0, 33);

	ui->scroll6->setPrecision(0.4);
	ui->scroll6->setRange(0, 3);

	ui->scroll1->setGestureEnabled(true);
	ui->scroll2->setGestureEnabled(true);
	ui->scroll3->setGestureEnabled(true);
	ui->scroll4->setGestureEnabled(true);
	ui->scroll5->setGestureEnabled(true);
	ui->scroll6->setGestureEnabled(true);

	ui->dateTimeEdit->setGestureEnabled(true);
}

MainWidget::~MainWidget()
{
	delete ui;
}

